-
Notifications
You must be signed in to change notification settings - Fork 20
feat: implement pallet_msa::withdraw_tokens extrinsic #2402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
🚀 New features to boost your workflow:
|
22fe1f5
to
1308dac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great effort but there are some blockers.
pallets/msa/src/weights.rs
Outdated
// Measured: `0` | ||
// Estimated: `0` | ||
// Minimum execution time: 4_000_000 picoseconds. | ||
Weight::from_parts(8_000_000, 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DB read write don't match. Need to run benchmarks for accurate weights.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, right, benchmarks. Will run.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had just the nitpick comment but nothing blocking. Lots of good work!
/// * [`Error::ProofHasExpired`] | ||
/// * [`Error::SignatureAlreadySubmitted`] | ||
/// | ||
pub fn check_signature( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This naming is confusing between this and verify_signature
; I suggest check_against_signature_registry
or something else more specific, since it doesn't examine the signature itself but makes sure it's not already registered and that it's ready but not expired.
Goal
The goal of this PR is to implement an initia
withdraw_tokens
extrinsic that allows MSAs holding tokens to authorize their tokens to be withdrawn to a specified account.Closes #2388
Discussion
Checklist